<script setup lang="ts">
import { onLaunch } from "@dcloudio/uni-app";
import Lnkyeah from "./utils/lnkyeah";
import { AIToken } from "./utils/cache";
// #ifdef H5
import Speech from "./utils/speech";
// #endif

onLaunch((options: any) => {
  console.log(options);
  // initShare();

  if (options?.query.share_user_uuid) {
    // @ts-ignore
    getApp().globalData.share_user_uuid = options?.query.share_user_uuid;
  }

  if (!Lnkyeah.instance.socket?.active && AIToken.get()) {
    // #ifdef H5
    Speech.instance.init();
    // #endif
    Lnkyeah.instance.login();
  }
});
</script>
<style lang="scss">
canvas {
  display: block;
}
/* .uni-tabbar {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
} */
</style>
